﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 畜牧业审核程序国产.Models.RagModel
{
    internal class ChatSession
    {
        public string SessionId { get; set; }
        public List<ChatMessageFromDB> MessageHistory { get; set; } = new List<ChatMessageFromDB>();

        public ChatSession(string sessionId)
        {
            SessionId = sessionId;
        }

        // 添加消息到历史记录
        public void AddMessage(ChatMessageFromDB chatMessage)
        {
            MessageHistory.Add(chatMessage);
        }
    }
}
